package com.junzhiit.nengji.shop.dao.impl;

import org.springframework.stereotype.Repository;

import com.bainaeco.framework.base.dao.AbstractBaseDAO;
import com.bainaeco.framework.common.jdbc.StatementParameter;
import com.junzhiit.nengji.shop.dao.UserConfigDAO;
import com.junzhiit.nengji.shop.model.UserConfig;

@Repository
public class UserConfigDAOImpl extends AbstractBaseDAO<UserConfig> implements UserConfigDAO {

	@Override
	public UserConfig getUserConfig(String userId) {
		StringBuilder sql = new StringBuilder();
		sql.append("select * from user_config where user_id = ?");
		StatementParameter params = new StatementParameter();
		params.setString(userId);
		return super.query(sql.toString(), UserConfig.class, params);
	}

	

}
